using UnityEngine;
using System.Collections;

public class monttu : MonoBehaviour {
public float viive = 0;
public GameObject o;	

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		if (viive > 0)
		o.rigidbody.velocity=new Vector3(0,0,0);
	
		}
	
	void OnCollisionEnter(Collision C)
	{ 
		viive = 1;
		o=C.gameObject;
		
	}
}

